package com.joinway.framework.admin.core.utils;

import java.util.Map;

import org.apache.commons.lang3.ArrayUtils;

public final class RequestUtils {

	public static String getParam(String name, Map<String, String[]> params){
		String[] values = params.get(name);
		return ArrayUtils.isEmpty(values) || values.length == 0 ? "" : values[0];
	}
	
	private RequestUtils(){}
	
}
